from barrelhouse.core.networks.models import vlan, network_transport, network_transport_type, network, ip_v4_address
from django.contrib import admin

class network_transport_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('name','vendor','network_type','notes_admin')

class network_transport_type_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('name', 'speed_info', 'notes_admin')

class network_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('name','network_information','vlan', 'location','connection')

class ip_v4_address_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('ip','network','device')

class vlan_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('__unicode__','notes_admin')

admin.site.register(vlan, vlan_admin)
admin.site.register(network_transport, network_transport_admin)
admin.site.register(network_transport_type, network_transport_type_admin)
admin.site.register(network, network_admin)
#admin.site.register(ip_v4_address, ip_v4_address_admin)
